package com.zuihai.app.mvp.model.api;

import com.zuihai.app.mvp.model.entity.BaseMainClass;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by Administrator on 2017/6/1 0001.
 */

public interface ICommonApi {

    //Tag  1去处  2 说说  3.头条  4.发现   5.服务   6  商品   7.评论
    //cancel  1点赞 2取消点赞
    @FormUrlEncoded
    @POST("Dianzan_clickInq?type=2")
    Observable<BaseMainClass> getDianzan(@Field("my_id") String my_id,
                                         @Field("tiaomu_id") String tiaomu_id,
                                         @Field("type") int dianzan_Tag,
                                         @Field("cancel") int cancle,
                                         @Field("releaser_id") String releaseid);

    //关注   Tag 1 关注  2 取消
    @FormUrlEncoded
    @POST("AddGuanzhuInq")
    Observable<BaseMainClass> getFocus(@Field("my_id") String my_id,
                                          @Field("friend_id") String friend_id,
                                          @Field("focus_Tag") int focus_Tag);



    //访客删除接口
    @FormUrlEncoded
    @POST("Fangke_DeleteInq")
    Observable<BaseMainClass> visitorDelect(@Field("tiaomu_id") String tiaomuID);


    //删除说说接口
    @FormUrlEncoded
    @POST("Shuoshuo_DeleteInq")
    Observable<BaseMainClass> deleteShuoshuo(@Field("id") String tiaomuID);

    //删除我发布的的接口
    @FormUrlEncoded
    @POST("Delete_MyReleaseInq")
    Observable<BaseMainClass> deleteMyRelease(@Field("tiaomu_id") String tiaomuID
    ,@Field("type") String type);

}
